Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Product api #7

Open
wants to merge 127 commits into
base: development
Choose a base branch
from
Open

Product api #7

wants to merge 127 commits into from

Conversation

santoshkavhar
Copy link

Product API has functionality of fetching all products, or fetching products by filters. Pagination is added in both these APIs, which sends the response as number of pages formed. In update Product's stock API, we are only updating the Available Quantity. There is also an API written to delete a Product by its ID.

RohitNalePUCSD and others added 19 commits September 10, 2020 14:38
… created. assets folder added which will contain product images. Code was successfully tested for mentioned APIs.
…n of ProductImages url field is changed to text.
…was modified, adding these changes. migrations.sql's queries are updated. Testing of all the APIs was done and it was successful for Product insertion, fetch all products, fetch single product, and delete a product.
… removed as it is implicit in Product Filters API. Error responses have been handled more properly.Total Records Method was given error as return.
RohitNalePUCSD and others added 10 commits September 14, 2020 14:17
… Filters and Product's API's function call reduced by combining the count and actual product getting Function into just one function. Queries put as constants in case of Product API. Instead of using Double quotes used back tick for Queries.
RohitNalePUCSD and others added 30 commits October 6, 2020 15:04
…, product.CategoryName no more needed to be set up.
…t structure for help in same. Changes made accordingly to Filters and Search API,so this is highly unstable version. In Response.go StatusBadRequest changed to status.
… TotalRecords field from Product structure as it is a bad practice.
…d helps us to fetch Products from Records. Method is used in ListProducts, FilterProduct and SearchProduct.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants